package com.taylor.spring5;

import com.taylor.spring5.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author taylor
 * @Description: SpringJUnitConfig 复合注解
 * @date 2021/4/7 21:54
 */
//@ExtendWith(SpringExtension.class)
//@ContextConfiguration("classpath:dbbean.xml")
@SpringJUnitConfig(locations = "classpath:dbbean.xml")
public class JTest5 {

    @Autowired
    private UserService userService;


    @Test
    public void test5(){
        userService.chgAccount();
    }
}
